home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 February
/
EnigmA AMIGA RUN 04 (1996)(G.R. Edizioni)(IT)[!][issue 1996-02][Skylink CD III].iso
/
earcd
/
util4
/
cy.lha
/
cy.doc
< prev
Wrap
Text File
|
1996-01-10
|
6KB
|
145 lines
Short: an ARexx program to manage CyberCron 1.15
Uploader: rick@emma.panam.wimsey.com
Author: rick@emma.panam.wimsey.com
Type: util/misc
Replaces: util/misc/cy1.0.lha
Version: 1.1
Requires: ARexx, CyberCron 1.15
I. Using from the command line
cy is an ARexx program to manage Chris Wichura's cron
utility, CyberCron. The command line options allow you to
start, stop, suspend and resume CyberCron's operation. You
can also list all the queued events and list the event(s)
that are queued to run next.
If you have ARexx running, 'cy ?' should output something
like this:
-e edit crontab [C:ed -sticky SYS:S/CronTab]
-b begin CyberCron [ME:Tools/CyberCron]
-q quit (kill) CyberCron
-s suspend
-r resume
-n next event(s) to execute
-l list all events, sorted
-L list all events, raw
-g toggle logfile
editor = C:ed -sticky
logfile = LOGS:CyberCron.log
crontab = SYS:S/CronTab
This shows the command line switches and current program paths.
You'll have to set the paths for your system under USER SETTABLE
OPTIONS at the start of the program (see III.)
II. Using from the window
Typing just 'cy' with no options starts up a window where you
can page through queued events and manipulate them. You can
add, delete, purge rexx events, open/close the logfile,
suspend/resume CyberCron's operation.
(This will make more sense after you start cy. Sorry for the
messyness.)
The header looks like this:
12:53:46 08/01/96 -- cy -- [CyberCron 1.5] p1 of 1
^ ^ ^
| | |
| current date CyberCron version
|
current time (updated whenever a key is pressed)
The events look like this:
17:02 MailPan :MAILUSER postmaster :OBEYQUEUE u
17:02 docron :MAILUSER postmaster :OBEYQUEUE u
17:02 :PRI -1 uucp:c/trimnews -h 2880 :OBEYQUEUE u
07:40 09/01/96 GetNews -puv :OBEYQUEUE u
16:05 10/01/96 :NOLOG bitch got your lotto ticket?
^ ^ ^
| | the cron event
| |
| date, if not today
|
time to execute
The bottom of the screen shows these options:
[s]uspend [r]esume [t]ag [d]elete [e]dit_crontab resca[n] lo[g]_file
<=prev page (spacebar) next page=> [aA]dd [qQ]uit [p]urge_rexx_events
suspend - suspends CyberCron's (CC's) operation.
resume - tells CC to resume operation.
tag - tags events. This is for (d)eleting several events
at once. A multi delete is kind of slow otherwise.
delete - if any tagged events, delete them (with confirm),
else delete the current event.
edit_crontab - pulls crontab into editor.
rescan - gets events from CC again. Some may have been
executed since last redraw.
log_file - toggles saving to CC's logfile ON/OFF.
<= space => - cursor left/right and space bar are used to move
between windows if there is more than one. Cursor
up/down moves through events in a window.
add - allows you to add an event, in the following format:
hour:minute event
*:* adds the event so that it will go off at the next
minute. It also appends an ":EXECONCE" so it only goes
off once. Return on a blank field to abort.
Add - add an event using CC's format:
min hr day mon dayofweek event
quit - quit after confirming
Quit - quick quit -- no confirm
purge - removes all events that were added through CC's
ARexx port
The last line is some status items:
Status:ACTIVE Crontab=SYS:S/CronTab Log=OFF
Status - CyberCron's status -- ACTIVE or SUSPENDED
Crontab - the current path setting for the Crontab
Log - whether logfile is ON or OFF
III. User Settable Options
---------------------
They currently look something like this:
/*---------------- USER SETTABLE OPTIONS (begin) ------------------------*/
screenwidth = 640
screenheight = 200
editor = 'C:ed -sticky'
CyberCron = 'ME:Tools/CyberCron'
crontab = 'SYS:S/CronTab'
sendmail = '"sendmail -f %s -R *"%s*""'
startcmd = CyberCron 'CRONTAB' crontab 'SENDMAIL' sendmail
logfile = 'LOGS:CyberCron.log'
/*---------------- USER SETTABLE OPTIONS (end) --------------------------*/
editor - your editor must stick to the CLI (for example CED's
'ed -sticky').
CyberCron - is the path and name of CyberCron on your system.
crontab - path and name of your CronTab.
sendmail - the uucp program that CC's :MAILUSER needs. If you
don't use the :MAILUSER option in any of your CC
events, remove "'SENDMAIL' sendmail" from startcmd.
startcmd - the dos command (including options) that you use to
start CyberCron.
logfile - path and name of CC's logfile.
IV. Contact Info
------------
If you use this, please email me at:
rick@emma.panam.wimsey.com (Rick Younie)
rick@freenet.vancouver.bc.ca (Rick Younie)